package com.example.testelc.repostrory;

import com.example.testelc.domain.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @Author: 普发忠
 * @Date: 2021/11/05/19:24
 */
public interface EsService extends ElasticsearchRepository<User,Integer> {
    List<User> findByName(String name);
    
    
    List<User> findByNameAndInfo(String name, String info);
    
    
}
